<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="/WEB-INF/html.tld" prefix="html" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
 
<html:table attributes="class='inputTable' border='0' width='100%'">
 			<tr>
				<td colspan="4" class="subSectionBottomBorder">										
					<h4><spring:message code="label.applicant.details"/>&nbsp;</h4>
					
				</td>
			</tr>
			<tr>
				<td><label><spring:message code='label.last.name'/></label></td>
				<td><label><spring:message code='label.first.name'/></label></td>
				<td><label><spring:message code='label.middle.name'/></label></td>
				<td><label><spring:message code='label.initial'/></label></td>
				
				
			</tr>
			<tr>
				<html:td><form:input path="${param.prefix}.lastName" name="${param.prefix}.lastName" cssClass="alpha required" maxlength="30"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.firstName" name="${param.prefix}.firstName" cssClass="alpha required" maxlength="30"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.middleName" name="${param.prefix}.middleName" cssClass="alpha" maxlength="30"></form:input></html:td>
				
				<html:td><form:select path="${param.prefix}.initial" name="${param.prefix}.initial" cssClass="required" items="${lovBean.list('NAME.INITIAL')}" /></html:td>
				
			</tr>
			
			<tr>
				<td colspan="4" class="subSectionBottomBorder">										
					<h4><spring:message code="label.current.address"/></h4>
				</td>
			</tr>
			<tr>
				<td><label><spring:message code='label.residence.type'/></label></td>
				<td><label><spring:message code='lable.suitno'/></label></td>
				<td><label><spring:message code='lable.streetno'/></label></td>
				<td><label><spring:message code='label.street.name'/></label></td>
				
				
			</tr>
			<tr>
				<html:td>
					<form:select path="${param.prefix}Address.addressType" name="${param.prefix}address.addressType" css="alpha-numeric required" items="${lovBean.list('RES.TYPE')}" />
					</html:td>
				<html:td><form:input path="${param.prefix}Address.suitNo" name="address.suitNo" cssClass="number required" maxlength="10" ></form:input></html:td>
				<html:td><form:input path="${param.prefix}Address.streetNo" name="address.streetNo" cssClass="number required" maxlength="10"></form:input></html:td>
				<html:td><form:input path="${param.prefix}Address.streetName" name="address.streetName" cssClass="alpha required" maxlength="20"></form:input></html:td>

				
			</tr>
			<tr>
				<td><label><spring:message code='label.city'/></label></td>
				<td><label><spring:message code='label.province.code'/></label></td>
				<td><label><spring:message code='label.postal.code'/></label></td>
				<td><label><spring:message code='label.stay.duration'/></label></td>
								
			</tr>
			<tr>
				<html:td><form:input path="${param.prefix}Address.city" name="address.city" maxlength="20"></form:input></html:td>
				<html:td><form:select path="${param.prefix}Address.provinceCode" id="address.provinceCode" cssClass="required" items="${lovBean.list('PRV.CD')}" /></html:td>
				<html:td><form:input path="${param.prefix}Address.postalCode" name="address.postalCode" cssClass="postalcode required"></form:input></html:td>
				<html:td><form:input path="${param.prefix}Address.stayDuration" name="address.stayDuration" cssClass="number" maxlength="4"></form:input></html:td>

			</tr>
			<tr>
				<td><label><spring:message code='label.birth.date'/></label></td>
				<td><label><spring:message code='label.ssn'/></label></td>
				<td><label><spring:message code='lable.mobile.phone'/></label></td>
				<td><label><spring:message code='label.email'/></label></td>

				
			</tr>
			<tr>
				
				<html:td><form:input path="${param.prefix}.dateOfBirth" name="${param.prefix}.dateOfBirth" cssClass="date required"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.ssn" name="${param.prefix}.ssn" cssClass="ssn"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.mobilePhone" name="${param.prefix}.mobilePhone" cssClass="phone required"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.emailId" name="${param.prefix}.emailId" cssClass="email"></form:input></html:td>

				
			</tr>
			
	
			<tr>
				<td colspan="4" class="subSectionBottomBorder">											
					<h4><spring:message code="label.mortgage.information"/>&nbsp;</h4>
				</td>
			</tr>
			<tr>
				<html:td><label><spring:message code='label.monthly.payment'/></label></html:td>
				<html:td><label><spring:message code='lable.towhom'/></label></html:td>
				<html:td><label><spring:message code='label.property.value'/></label></html:td>
				<html:td><label><spring:message code='label.balance'/></label></html:td>
			</tr>
			<tr>
				<html:td><form:input path="${param.prefix}.mortgage.monthlyPayment" name="mortgage.monthlyPayment" cssClass="decimal required"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.mortgage.toWhom" name="mortgage.toWhom" cssClass="alpha-numeric required" maxlength="20"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.mortgage.propertyValue" name="mortgage.propertyValue" cssClass="decimal required"></form:input></html:td>
				<html:td><form:input path="${param.prefix}.mortgage.balance" name="mortgage.balance" cssClass="decimal required"></form:input></html:td>
			</tr>
 </html:table>
 <jsp:include page="employerForm.jsp">
 <jsp:param value="${param.prefix}Employment" name="prefix"/> 
 
 </jsp:include>
 <form:hidden path="${param.prefix}.customerId" cssClass="decimal required" />